let domain = window.location.origin + '/';
let hostnames = ['localhost', '0.0.0.0', '192.168.3.13', '192.168.2.97'];

// 本地环境;
if (hostnames.indexOf(window.location.hostname) > -1) {
  domain = domain + 'dev/';
}

if (process.env.NODE_ENV !== 'development') {
  domain = domain + 'api/';
}

export default domain;
